package com.ruoyi.expressList;

import cn.hutool.core.lang.generator.SnowflakeGenerator;
import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 系统模块
 *
 * @author ruoyi
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@MapperScan("com.ruoyi.expressList.mapper")
public class ExpressListApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(ExpressListApplication.class, args);
        System.out.println("快递员模块启动成功");
    }
    @Bean
    SnowflakeGenerator snowflakeIdWorker(){
        return new SnowflakeGenerator(1,0);
    }
}
